[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 68h (104)        Commit File                               . DOS 3.3

     Writes a file from buffer to disk.

          On entry:      AH         68h
                         BX         File handle

          Returns:       If CF = 1, AX = DOS Error Code

  ---------------------------------------------------------------------------

     This function lets you write a file's buffered data out to disk. To
     write a file from the internal buffers out to disk, just pass the
     file's handle in BX. (Before this function was added, programs used to
     flush file buffers by closing and then opening files.)

     If there was a write error, the carry flag is set on return, and AX
     contains the standard DOS error code (see the menu item DOS Error
     Codes).

            Notes:      This function is especially recommended for use
                        in multi-user or LAN environments.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson